8f81e0d95ca1162b1a249fcf0fd4afd0f2a83ad1,platform/platform-filter-clientinfo/src/main/java/org/codice/ddf/platform/filter/clientinfo/ClientInfoFilter.java,ClientInfoFilter,createClientInfoMap,#ServletRequest#,80
Before Change
clientInfoMap.put(SERVLET_REMOTE_HOST, request.getRemoteHost());
clientInfoMap.put(SERVLET_SCHEME, request.getScheme());
clientInfoMap.put(SERVLET_CONTEXT_PATH,
request.getServletContext()
.getContextPath());
LOGGER.debug("Creating client info map with the following pairs, {}",
clientInfoMap.toString());
return clientInfoMap;
After Change
clientInfoMap.put(SERVLET_REMOTE_ADDR, request.getRemoteAddr());
clientInfoMap.put(SERVLET_REMOTE_HOST, request.getRemoteHost());
clientInfoMap.put(SERVLET_SCHEME, request.getScheme());
ServletContext servletContext = request.getServletContext();
if (servletContext != null) {
clientInfoMap.put(SERVLET_CONTEXT_PATH, servletContext.getContextPath());
}